package com.ruoyi.stock2.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import java.util.Date;

/**
 * 交易数据2对象 TRADEDATA2
 * 
 * @author ruoyi
 * @date 2020-03-01
 */
public class TRADEDATA2 extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 股票代码 */
    @Excel(name = "股票代码")
    private String symbol;

    /** 交易时间 */
    @Excel(name = "交易时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date datetime;

    /** 开盘价格 */
    @Excel(name = "开盘价格")
    private Double dateopenprice;

    /** 最高价格 */
    @Excel(name = "最高价格")
    private Double highprice;

    /** 最低价格 */
    @Excel(name = "最低价格")
    private Double lowprice;

    /** 收盘价格 */
    @Excel(name = "收盘价格")
    private Double closeprice;

    /** 总金额万元 */
    @Excel(name = "总金额万元")
    private Double amount;

    /** 交易量手数 */
    @Excel(name = "交易量手数")
    private Double volume;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setSymbol(String symbol) 
    {
        this.symbol = symbol;
    }

    public String getSymbol() 
    {
        return symbol;
    }
    public void setDatetime(Date datetime) 
    {
        this.datetime = datetime;
    }

    public Date getDatetime() 
    {
        return datetime;
    }
    public void setDateopenprice(Double dateopenprice) 
    {
        this.dateopenprice = dateopenprice;
    }

    public Double getDateopenprice() 
    {
        return dateopenprice;
    }
    public void setHighprice(Double highprice) 
    {
        this.highprice = highprice;
    }

    public Double getHighprice() 
    {
        return highprice;
    }
    public void setLowprice(Double lowprice) 
    {
        this.lowprice = lowprice;
    }

    public Double getLowprice() 
    {
        return lowprice;
    }
    public void setCloseprice(Double closeprice) 
    {
        this.closeprice = closeprice;
    }

    public Double getCloseprice() 
    {
        return closeprice;
    }
    public void setAmount(Double amount) 
    {
        this.amount = amount;
    }

    public Double getAmount() 
    {
        return amount;
    }
    public void setVolume(Double volume) 
    {
        this.volume = volume;
    }

    public Double getVolume() 
    {
        return volume;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("symbol", getSymbol())
            .append("datetime", getDatetime())
            .append("dateopenprice", getDateopenprice())
            .append("highprice", getHighprice())
            .append("lowprice", getLowprice())
            .append("closeprice", getCloseprice())
            .append("amount", getAmount())
            .append("volume", getVolume())
            .toString();
    }
}
